//
//  UserManager.h
//  TianKeLong
//
//  Created by chenzhihui on 13-11-30.
//  Copyright (c) 2013年 青岛晨之辉信息服务有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserManager : NSObject
//存、取账号
+(void)saveUsername:(NSString *)uname;
+(NSString *)username;

//存、取密码
+(void)savePassword:(NSString *)password;
+(NSString *)password;

//存、取key
+(void)saveKey:(NSString *)key;
+(NSString *)key;

//存、取用户名
+(void)saveRealname:(NSString *)realname;
+(NSString *)realname;

//存、取语言
+(void)saveLanguage:(NSString *)language;
+(NSString *)language;

//存、取是否登录过
+(void)saveLoginType:(NSString*)isLogin;
+(BOOL)isLoginType;

//存、取是否登录过用于统计
+(void)saveLoginTypeForEffect:(NSString*)isLogin;
+(BOOL)isLoginTypeForEffect;

//存、取录音权限
+(void)saveRecordType:(NSString *)record;
+(BOOL)isRecord;

//存、取微站地址
+(void)saveWeiUrl:(NSString *)url;
+(NSString *)weiUrl;
//存、取主帐号子帐号权限
+(void)saveChild:(NSString *)child;
+(NSString *)child;

//存、取帐号id
+(void)saveMemberId:(NSString *)member_id;
+(NSString *)member_id;

//存、取主帐号id
+(void)saveMasterId:(NSString *)master_id;
+(NSString *)master_id;

//存、取帐号推送状态
+(void)savePushType:(NSString*)isPush;
+(BOOL)isPush;

//存、取是否是新版本
+(void)hasNewVersion:(NSString*)version;
+(BOOL)isNewVersion;


//存、取操作权限
+(void)saveJurisdiction:(NSDictionary *)jurisdiction;
+(NSDictionary *)jurisdiction;

//存、取记住密码状态
+(void)saveState:(NSString *)state;
+(NSString *)state;
//判断是否登陆
+(BOOL)isLogin;
//退出登录
+(void)logoff;

//正则验证
+(BOOL)regex_match:(NSString *)regexStr andValue:(NSString *)value;




@end
